package com.helloniu.red5.info
{

import flash.utils.ByteArray;
public class BussinessUnit
{
	public function BussinessUnit(atype:String = null)
    {
    	type = atype;
    }
    
	public function parseData(barr:ByteArray):void {            
    	type = barr.readUTF();
    	opened = barr.readBoolean();
    }
    
	public function writeData(barr:ByteArray):void {            
    	barr.writeUTF(type);
    	barr.writeBoolean(opened);
    }

	public function toString():String {
    	return type +"|"+ opened;
    }
    
	public var type:String;    
	public var opened:Boolean = false;
}
}